package com.vc.service;

import java.text.SimpleDateFormat;
import java.util.Date;

public class LogService {

	public static void info(String message) {
		System.out.println(new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new Date()) + " - " +  message);
	}
	
	public static void error(String message) {
		System.err.println(new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new Date()) + " - " +  message);
	}
	
	public static void error(Exception ex) {
		System.err.println(new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new Date()) + " - " +  ex.getMessage());
		ex.printStackTrace();
	}
}
